/*
package com.koala.upms.controller;
import java.util.Map;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.github.pig.common.constant.CommonConstant;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.github.pig.common.util.Query;
import com.github.pig.common.util.R;
import com.koala.upms.api.entity.SysRole;
import com.koala.upms.service.SysRoleService;

*/
/**
 * <p>
 * 系统角色表 前端控制器
 * </p>
 *
 * @author zhangchengji
 * @since 2019-05-12
 *//*

@RestController
@RequestMapping("/sysRole" )
public class SysRoleController   {
@Autowired private SysRoleService sysRoleService;

*/
/**
 * 通过ID查询
 *
 * @param id ID
 * @return SysRole
 *//*

@GetMapping("/{id}" )
public R<SysRole> get(@PathVariable Integer id){
        return new R<>(sysRoleService.selectById(id));
        }


*/
/**
* 分页查询信息
*
* @param params 分页对象
* @return 分页对象
*//*

@RequestMapping("/page" )
public Page page(@RequestParam Map<String, Object> params){
        params.put(CommonConstant.DEL_FLAG,CommonConstant.STATUS_NORMAL);
        return sysRoleService.selectPage(new Query<>(params),new EntityWrapper<>());
        }

*/
/**
 * 添加
 * @param  sysRole 实体
 * @return success/false
 *//*

@PostMapping
public R<Boolean> add(@RequestBody SysRole sysRole){
        return new R<>(sysRoleService.insert(sysRole));
        }

*/
/**
 * 删除
 * @param id ID
 * @return success/false
 *//*

@DeleteMapping("/{id}" )
public R<Boolean> delete(@PathVariable Integer id){
    SysRole sysRole =new SysRole();
    sysRole.setId(id);
    sysRole.setUpdateTime(new Date());
    sysRole.setDelFlag(CommonConstant.STATUS_DEL);
        return new R<>(sysRoleService.updateById(sysRole));
        }

*/
/**
 * 编辑
 * @param  sysRole 实体
 * @return success/false
 *//*

@PutMapping
public R<Boolean> edit(@RequestBody SysRole sysRole){
    sysRole.setUpdateTime(new Date());
        return new R<>(sysRoleService.updateById(sysRole));
        }
        }
*/
